/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wwy
 * Date: 2024-05-07
 * Time: 13:05
 */
public class LiangShuZhiHe {
    public static void main(String[] args) {
        int[] array={2,7,11,15};
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < i; j++) {
                if(array[i]+array[j]==9){
                    System.out.println("["+i+","+j+"]");
                }
            }
        }
    }
}
